import request from '@/utils/request'

// 查询销售合同列表
export function listFyxszl(query) {
  return request({
    url: '/sale/contract/fyxszl/list',
    method: 'get',
    params: query
  })
}

// 查询销售合同详细
export function getFyxszl(fyXszloid) {
  return request({
    url: '/sale/contract/fyxszl/' + fyXszloid,
    method: 'get'
  })
}

// 新增销售合同
export function addFyxszl(data) {
  return request({
    url: '/sale/contract/fyxszl',
    method: 'post',
    data: data
  })
}

// 修改销售合同
export function updateFyxszl(data) {
  return request({
    url: '/sale/contract/fyxszl',
    method: 'put',
    data: data
  })
}

// 删除销售合同
export function delFyxszl(fyXszloid) {
  return request({
    url: '/sale/contract/fyxszl/' + fyXszloid,
    method: 'delete'
  })
}
